package systems;

import admin.data.config.ServiceConfigData;
import data.config.SiteConfigData;
import models.config.ServiceConfigModel;
import models.config.SiteConfigModel;

public class ConfigSystem {
    private static SiteConfigModel configs = null;

    private static ServiceConfigModel serviceConfigs = null;
    
    public static SiteConfigModel getConfigs() {
        if (configs == null) {
            SiteConfigData cData = new SiteConfigData();
            setConfigs(cData.getConfig(1));
        }
        return configs;
    }

    public static void setConfigs(SiteConfigModel configs) {
        ConfigSystem.configs = configs;
    }

	public static ServiceConfigModel getServiceConfigs() {
		if (serviceConfigs == null) {
			ServiceConfigData sData = new ServiceConfigData();
			setServiceConfigs(sData.getConfig(1));
		}
		return serviceConfigs;
	}

	public static void setServiceConfigs(ServiceConfigModel serviceConfigs) {
		ConfigSystem.serviceConfigs = serviceConfigs;
	}
    
    
}
